/*
 * Filename:    WarningDeductionDTO.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年11月19日
 */
package com.paic.mhis.hcpms.warning.dto;

import java.math.BigDecimal;

import org.apache.commons.lang.StringUtils;

import com.paic.mhis.common.base.dto.BaseDTO;

public class WarningDeductionDTO extends BaseDTO {

	private static final long serialVersionUID = 1L;
	private String idStandardscore;// 物理ID
	private String scoreName;// 评分标准名称
	private String upperValues;// 上限分值
	private String lowerValues;// 下线分值
	private String parentId;// 所属父标准id
	private String scoreLevel;// 层级
	private String fileNo;// 文件号
	private String scoreType;// 评分类别
	private String isValid;// 是否有效[0-有效，1-无效]
	private String point;// 扣分值
	private String pointTotal;//总扣分值
	private String orgContentPoint;//考核内容已记分值
	private String mediCalContentPoint;//医护人员

	private String referenceScores;// 参考分值

	public String getIdStandardscore() {
		return idStandardscore;
	}

	public void setIdStandardscore(String idStandardscore) {
		this.idStandardscore = idStandardscore;
	}

	public String getScoreName() {
		return scoreName;
	}

	public void setScoreName(String scoreName) {
		this.scoreName = scoreName;
	}

	public String getUpperValues() {
		if (StringUtils.isNotEmpty(upperValues)) {
			return new BigDecimal(upperValues).setScale(1, BigDecimal.ROUND_FLOOR)
					.toString();
		}
		return this.upperValues;
	}

	public void setUpperValues(String upperValues) {
		this.upperValues = upperValues;
	}

	public String getLowerValues() {
		if (StringUtils.isNotEmpty(lowerValues)) {
			return new BigDecimal(lowerValues).setScale(1, BigDecimal.ROUND_FLOOR)
					.toString();
		}
		return this.lowerValues;
	}

	public void setLowerValues(String lowerValues) {
		this.lowerValues = lowerValues;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getScoreLevel() {
		return scoreLevel;
	}

	public void setScoreLevel(String scoreLevel) {
		this.scoreLevel = scoreLevel;
	}

	public String getFileNo() {
		return fileNo;
	}

	public void setFileNo(String fileNo) {
		this.fileNo = fileNo;
	}

	public String getScoreType() {
		return scoreType;
	}

	public void setScoreType(String scoreType) {
		this.scoreType = scoreType;
	}

	public String getIsValid() {
		return isValid;
	}

	public void setIsValid(String isValid) {
		this.isValid = isValid;
	}

	public String getPoint() {
		return point;
	}

	public void setPoint(String point) {
		this.point = point;
	}

	public String getReferenceScores() {
		if (StringUtils.isNotBlank(this.getLowerValues()) && StringUtils.isNotBlank(this.getUpperValues())) {
			this.referenceScores = this.getLowerValues() + "分-" + this.getUpperValues() + "分";
		}else {
			this.referenceScores = this.getUpperValues()+"分";
		}
		return referenceScores;
	}

	public void setReferenceScores(String referenceScores) {
		this.referenceScores = referenceScores;
	}

	public String getPointTotal() {
		return pointTotal;
	}

	public void setPointTotal(String pointTotal) {
		this.pointTotal = pointTotal;
	}

	public String getOrgContentPoint() {
		return orgContentPoint;
	}

	public void setOrgContentPoint(String orgContentPoint) {
		this.orgContentPoint = orgContentPoint;
	}

	public String getMediCalContentPoint() {
		return mediCalContentPoint;
	}

	public void setMediCalContentPoint(String mediCalContentPoint) {
		this.mediCalContentPoint = mediCalContentPoint;
	}

}
